package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import cn.wolfcode.luowowo.search.domain.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StrategyTemplateRepository extends ElasticsearchRepository<StrategyTemplate,Long> {
   List<StrategyTemplate> findByThemeId(Long id);

    /**
     * 查询目的下的所有攻略
     * @param destName
     * @return
     */
    List<StrategyTemplate> findByDestName(String destName);
}
